package com.ktg.mes.unit.demo.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@TableName("api_model")
@ApiModel(value="api_model对象", description="接口请求配置")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class ApiResultModel implements Serializable {
    private static final long serialVersionUID = 1L;

    /**主键*/
    @TableId(value = "id",type = IdType.AUTO)
    private String id;

    /**创建人*/
    private java.lang.String createBy;


    /**创建日期*/
    private java.util.Date createTime;


    /**更新人*/
    private java.lang.String updateBy;


    /**更新日期*/
    private java.util.Date updateTime;


    //api 接口编码
    private String apiCode;


    //api 接口说明
    private String apiDes;


    //api 数据库源
    private String dsName;


    //数据库查询语句
    private String sqlFind;
    /**
     * [{"sql1":" select user_name from sys_user where user_id in ('#{aa}') "}
     * ,{"sql2":"select device_name from device where user_name in '#{sql.username}',
     * {"result":"select device_name from device where user_name in '#{sql.username}'"}"},]
     */


    //api 参数
    private String paramJSon; // {"aa":"1"}


    //返回参数说明
    private String result;
    /**
     * [{"userName":{"show":true,"name":“用户名”}},{"deviceName":{"show":true,"name":“用户名”}},]
     */


    private String remark;

}
